package com.ruoyan.service.impl;

import com.ruoyan.mapper.UserMapper;
import com.ruoyan.pojo.User;
import com.ruoyan.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Package: com.ruoyan.service
 * @ClassName: UserServiceImpl
 * @Author: ruoyan1998
 * @CreateTime: 2021/5/21 16:06
 * @Description:
 */
@Service
public class UserServiceImpl implements UserService
{
    @Autowired
    private UserMapper userMapper;

    @Override
    public User queryUserByNameAndPassword(String name, String password)
    {
        return userMapper.queryUserByNameAndPassword(name,password);
    }

    @Override
    public User queryUserByName(String name)
    {
        return userMapper.queryUserByName(name);
    }
}
